package com.sanmu.Test;

import com.sanmu.bean.House;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @version 1.0
 * @Author xinnian
 * @Date 2024/9/14 13:55
 * @注释
 * @create: 2024-09-14 13:55
 */

public class lifecycleTest {

@Test
    public void test( ){
      ApplicationContext ioc = new ClassPathXmlApplicationContext("House.xml");
        House house = ioc.getBean("house", House.class);
        System.out.println(house);

        ((ClassPathXmlApplicationContext) ioc).close();


    }
}
